import Vue from 'vue';
import Login from '../components/Login';
import Tab from '../components/Tab'
import Register from '../components/Register';
import Index from '../components/Index';
import UserCenter from '../components/UserCenter';


import VueRouter from 'vue-router';
Vue.use(VueRouter);

const routes = [

    {
        "path" : "/",
        "component":Index
    },
    {
        "path" : "/Register",
        "component":Register

    },
    {
        "path" : "/Login",
        "component":Login

    },
    {
        "path" : "/Tab",
        "component":Tab
    },
    {
        "path" : "/UserCenter",
        "component":UserCenter
    }
]


const router = new VueRouter({routes,mode:"history"});
export default router;